package com.epam.mycollections.interfaces;

import java.util.Iterator;

/**
 * My Personal interface for Lists
 *
 * @author Iurii Miedviediev
 * @version 1.0 Build 07.04.2014
 *
 */
public interface MyList<E> extends Iterable<E> {
    void add(E e);
    void add(int index, E element);
    void addAll(E[] c);
    void addAll(int index, E[] c);
    E get(int index);
    E remove(int index);
    void clear();
    boolean isEmpty();
    void set(int index, E element);
    int indexOf(E o);
    int size();
    Object[] toArray();
    Iterator<E> iterator();
}
